package com.example.demo.service.impl;

import com.example.demo.mapper.StudentAttributeMapper;
import com.example.demo.mapper.entity.Attribute;
import com.example.demo.mapper.entity.StudentAttribute;
import com.example.demo.service.StudentAttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lucy
 * @create 2024-02-13 16:23
 */
@Service
public class StudentAttributeServiceImpl implements StudentAttributeService {
    @Autowired
    private StudentAttributeMapper mapper;

    @Override
    public List<Attribute> selectAllAttribute() {
        return mapper.selectAllAttribute();
    }

    @Override
    public void insertStudentAttribute(StudentAttribute studentAttribute) {
        mapper.insertStudentAttribute(studentAttribute);
    }

    @Override
    public List<StudentAttribute> getStudentAttributeList(int studentId) {
        return mapper.getStudentAttributeList(studentId);
    }

    @Override
    public Attribute selectAttributeById(int attributeId) {
        return mapper.selectAttributeById(attributeId);
    }

    @Override
    public List<Attribute> selectAttribute4() {
        return mapper.selectAttribute4();
    }

}
